using System.Collections.Generic;
using UnityEngine;

//用于保存游戏数据的类
public class SaveData {
    // 用于保存宝箱的数据
    public SerializableDictionary<string, InventorySaveData> chestDictionary;

    // 用于保存被收集的物品的名称
    public List<string> collectedItems;

    // 用于保存激活的物品的数据
    public SerializableDictionary<string, ItemPickUpSaveData> activeItems;
    // 用于保存商店的数据
    public SerializableDictionary<string, ShopSaveData> _shopKeeperDictionary;

    public InventorySaveData playerInventory;// 玩家背包库存数据

    public SaveData()
    {
        chestDictionary = new SerializableDictionary<string, InventorySaveData>();
        collectedItems = new List<string>();
        activeItems = new SerializableDictionary<string, ItemPickUpSaveData>();
        _shopKeeperDictionary = new SerializableDictionary<string, ShopSaveData>();
        
        playerInventory = new InventorySaveData();
    }
}